const SALT = '__zksd_'
const local = {
	get: (key) => {
		const strValue = uni.getStorageSync(SALT + key)
		if (strValue) {
			return JSON.parse(strValue)
		} else {
			return ''
		}
	},
	set: (key, jsonValue) => {
		uni.setStorageSync(SALT + key, JSON.stringify(jsonValue))
	},
	remove: (key) => {
		uni.removeStorageSync(SALT + key)
	},
	removeAll: () => {
		uni.clearStorageSync()
	}
}
export {
	local
}
